<?php
// +----------------------------------------------------------------------
// |  [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-present http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Released under the MIT License.
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------

namespace app\meeting\controller;

use cmf\controller\AdminBaseController;
use think\Db;

class IndexController extends AdminBaseController
{
    public function index()
    {
        $where=[];
        $where[]=['title','like','%'. input('keyword','') .'%'];
        $data = Db::table('ims_hc_meet')
            ->where($where)
            ->paginate(10);
        $page  =  $data->render();
        $list  = $data->toArray();

        $this->assign('list',$list['data']);
        $this->assign('page',$page);
        return $this->fetch();
    }

}
